class Animal {
  move() {
    console.log('Animal move')
  }
}

class Dog extends Animal {
  bark() {
    console.log('Dog bark')
  }
}

const dog = new Dog()
dog.move()
dog.bark()